<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  </head>
  <body>
<div class="easyui-layout" data-options="fit:true">
	<div data-options="region:'north',border:false,split:false" style="overflow:hidden">        
        <form id="query-form2" class="search_form clearfix">
         	
        	<dl>
				<dt>用户帐号：</dt>
				<dd>
					<input name="searchMore" id="searchMore" type="text" class="txt" maxlength="16"/>
				</dd>
			</dl>
			<dl>
				<dt>荣誉值：</dt>
				<dd>
					<input name="honorValueStart" id="honorValueStart" type="text" class="txt" maxlength="16"/>
					--
					<input name="honorValueEnd" id="honorValueEnd" type="text" class="txt" maxlength="16"/>
				</dd>
			</dl>
			<dl>
				<dt>荣誉等级：</dt>
				<dd>
					<select  name="honorLevel" id="honorLevel" maxlength="16">
					  <option value="">未选择</option>
					  <option value="1">1</option>
					  <option value="2">2</option>
					  <option value="3">3</option>
					  <option value="4">4</option>
					  <option value="5">5</option>
					  <option value="6">6</option>
					  <option value="7">7</option>
					  <option value="8">8</option>
					  <option value="9">9</option>
					</select>
				</dd>
			</dl>
            <p class="search_form_btn">
            	<input type="button" value="搜索" class="icon_serach" onclick="query()" />
            </p>
            <br>
				<dl>
					<dt>通知用户话术编写：</dt>
					<dd>
						<textarea name="pushMsg" id="pushMsg" cols="100" rows="3" class="txt" maxlength="500"/>
					</dd>
				</dl>
			</br>
        </form>
    </div>
	<div data-options="region:'center',border:false">
  		<table id="datagrid2">
			<thead>
				<tr>
					<th data-options="field:'userIdentity',width:150,align:'center'">帐号</th>
					<th data-options="field:'nick',width:150,align:'center'">昵称</th>
					<th data-options="field:'honorValue',width:150,align:'center'">荣誉值</th>
					<th data-options="field:'honorLevel',width:150,align:'center'">荣誉等级</th>
					<th data-options="field:'sex',width:60,align:'center',formatter:formatSex ">性别</th>
					<th data-options="field:'interests',width:200,align:'center'">兴趣</th>
					<th data-options="field:'hasIdentityAuth',width:80,align:'center',formatter:formatHasIdentityAuth ">身份认证</th>
					
				</tr>
			</thead>
		</table>
    </div>    
</div>
<script type="text/javascript">
	easyui.util.initDatagrid('#datagrid2',{
		singleSelect:false,
		url:'${pageContext.request.contextPath}/user/base/choose'
	});
	
	function query() {
		if(!$('#query-form2').form('validate')) return;
		var data=$('#query-form2').form('jsonObject');
		$('#datagrid2').datagrid('load',data);
		//if(datagrid=='datagrid') $('#query-dialog').dialog('close');
	}
	
	function formatSex(value,row,index) {
		var l_html = '女';
		if (value==1) {
			l_html = '男';
		}
		return l_html;
	}
	function formatHasIdentityAuth(value,row,index) {
		var l_html = '未认证';
		if (value==1) {
			l_html = '已认证';
		}
		return l_html;
	}
</script>
  </body>
</html>